

ceph osd crush add-bucket ssd_root root

racks="rack1-ssd rack2-ssd rack3-ssd"
for rack in $racks
do
    ceph osd crush add-bucket ${rack} rack
    ceph osd crush move ${rack} root=ssd_root
done

hosts="zk23-01-ssd"
rack="rack1-ssd"

for host in $hosts
do
   ceph osd crush add-bucket ${host} host
   ceph osd crush move  ${host} rack=${rack}
done

host="zk23-02-ssd"
rack="rack2-ssd"

for host in $hosts
do
	ceph osd crush add-bucket ${host} host
	ceph osd crush move  ${host} rack=${rack}
done

host="zk23-03-ssd"
rack="rack3-ssd"
for host in $hosts
do
   ceph osd crush add-bucket ${host} host
   ceph osd crush move  ${host} rack=${rack}
done


#ceph osd crush create-or-move  osd.28 1.0 root=ssd_root  rack=rack1 host=zk23-01-ssd 

